﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DoAn.DTO;
using System.Data;

namespace DoAn.DAO
{
    public class QuangCaoDAO
    {
        public static void update(QuangCaoDTO qc)
        {
            string sql = "update QUANGCAO Set NoiDung =N'"+qc.NoiDung+"',Link='"+qc.MaQuangCao+"',HinhAnh='"+qc.HinhAnh+"',TinhTrang='"+qc.TinhTrang+"' ";
            DataProvider.ExcuteQuery(sql);
        }
        public static DataTable select()
        {
            return DataProvider.DataTable("select * from QUANGCAO");
        }
    }
}